<?php

namespace App\Models;

use App\Common\Traits\HasAttachments;

class AsyncExportTask extends Base
{
    use HasAttachments;

    /**
     * 状态: 初始化
     */
    const STATUS_INIT = 1;

    /**
     * 状态: 进行中
     */
    const STATUS_PROCESSING = 2;

    /**
     * 状态: 失败
     */
    const STATUS_FAILED = 3;

    /**
     * 状态: 已完成
     */
    const STATUS_SUCCESS = 4;

    public function operator()
    {
        return $this->belongsTo(Administrator::class, 'operator_id');
    }
}
